#include <stdio.h>

charcalculation(char *arr)
{
    int length=strlen(arr);
    int idx=0;
    int sum=0;
    for (int i = 0; i < length; i++)
    {
        for (int j=length-1; j<i; j--)
        {
           if (arr[i] == arr[j])    
           {
            /* code */
           }
           
        }
        
        
    }
    
            

}

int main()
{
    char arr[100] = "afsahhrhjukkhmk";
    //scanf("%s", arr);

    calculation(arr);

    return 0;
}